import request from "../utils/request";

// 用户登录
export const userLogin = data => {
    return request({
        method: 'POST',
        url: '/user/loginIn',
        data
    })
}
//验证码注册
export const codeLogon = data => {
    return request({
        method: 'POST',
        url: '/user/longing',
        data
    })
}
//获取验证码
export const getCode = data => {
    return request({
        method: 'POST',
        url: '/VerificationCode/getLoginCode',
        data
    })
}
//账号注册
export const studentLogon = data => {
    return request({
        method: 'POST',
        url: '/user/enroll',
        data
    })
}
//退出登录
export const quitLogin = () => {
    return request({
        method: 'GET',
        url: '/user/loginOut'
    })
}
